<?php 

	// field names
	define("DLG_MESSAGE","message");
	define("DLG_LEFT_TEXT","leftText");
	define("DLG_LEFT_LINK","leftLink");
	define("DLG_RIGHT_TEXT","rightText");
	define("DLG_RIGHT_LINK","rightLink");
	
	//predefined buttons texts..
	define("DLG_EMPTY"," ");
	define("DLG_OK","OK");
	define("DLG_TRY_AGAIN","Try Again?");
	define("DLG_CANCEL","Cancel");
	define("DLG_YES","Yes");
	define("DLG_NO","No");
	
	function dialoguePage($args){
		global $authInfo, $db, $viewMode;
		
		?>
<div id="contentIndex">
        <br>
        <br>
        <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td class="contentlinks" colspan="2"> 
              <div align="left"><?php  echo extractStringWithKeyFromArray(DLG_MESSAGE, $args); ?></div>
            </td>
          </tr>
          <tr> 
            <td colspan="2"><img src="../images/spacer.gif" width="300" height="30"></td>
          </tr>
          <tr> 
            <td width="150"> 
              <div align="left">
              	<?php 
              		$leftLink = extractStringWithKeyFromArray(DLG_LEFT_LINK, $args,"");
              		$leftLinkText = extractStringWithKeyFromArray(DLG_LEFT_TEXT, $args,"");
              		
              		if ( 0 < strlen($leftLink) &&  0 < strlen($leftLinkText))
              			printUrl($leftLink,$leftLinkText);
              	?>              
              </div>
            </td>
            <td width="150"> 
              <div align="right">
              	<?php 
              		$rightLink = extractStringWithKeyFromArray(DLG_RIGHT_LINK, $args,"");
              		$rightLinkText = extractStringWithKeyFromArray(DLG_RIGHT_TEXT, $args,"");
              		
              		if ( 0 < strlen($rightLink) &&  0 < strlen($rightLinkText))
              			printUrl($rightLink,$rightLinkText);
              	?>
              </div>
            </td>
          </tr>
        </table>
        <br>
        <br>
        <br>
</div>
<?php
}
?>